/****************************************************************************
** Meta object code from reading C++ file 'qwt_counter.h'
**
** Created by: The Qt Meta Object Compiler version 68 (Qt 6.5.3)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../qwt_counter.h"
#include <QtCore/qmetatype.h>

#if __has_include(<QtCore/qtmochelpers.h>)
#include <QtCore/qtmochelpers.h>
#else
QT_BEGIN_MOC_NAMESPACE
#endif


#include <memory>

#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qwt_counter.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.5.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {

#ifdef QT_MOC_HAS_STRINGDATA
struct qt_meta_stringdata_CLASSQwtCounterENDCLASS_t {};
static constexpr auto qt_meta_stringdata_CLASSQwtCounterENDCLASS = QtMocHelpers::stringData(
    "QwtCounter",
    "buttonReleased",
    "",
    "value",
    "valueChanged",
    "btnReleased",
    "btnClicked",
    "textChanged",
    "numButtons",
    "basicstep",
    "minValue",
    "maxValue",
    "stepButton1",
    "stepButton2",
    "stepButton3",
    "editable"
);
#else  // !QT_MOC_HAS_STRING_DATA
struct qt_meta_stringdata_CLASSQwtCounterENDCLASS_t {
    uint offsetsAndSizes[32];
    char stringdata0[11];
    char stringdata1[15];
    char stringdata2[1];
    char stringdata3[6];
    char stringdata4[13];
    char stringdata5[12];
    char stringdata6[11];
    char stringdata7[12];
    char stringdata8[11];
    char stringdata9[10];
    char stringdata10[9];
    char stringdata11[9];
    char stringdata12[12];
    char stringdata13[12];
    char stringdata14[12];
    char stringdata15[9];
};
#define QT_MOC_LITERAL(ofs, len) \
    uint(sizeof(qt_meta_stringdata_CLASSQwtCounterENDCLASS_t::offsetsAndSizes) + ofs), len 
Q_CONSTINIT static const qt_meta_stringdata_CLASSQwtCounterENDCLASS_t qt_meta_stringdata_CLASSQwtCounterENDCLASS = {
    {
        QT_MOC_LITERAL(0, 10),  // "QwtCounter"
        QT_MOC_LITERAL(11, 14),  // "buttonReleased"
        QT_MOC_LITERAL(26, 0),  // ""
        QT_MOC_LITERAL(27, 5),  // "value"
        QT_MOC_LITERAL(33, 12),  // "valueChanged"
        QT_MOC_LITERAL(46, 11),  // "btnReleased"
        QT_MOC_LITERAL(58, 10),  // "btnClicked"
        QT_MOC_LITERAL(69, 11),  // "textChanged"
        QT_MOC_LITERAL(81, 10),  // "numButtons"
        QT_MOC_LITERAL(92, 9),  // "basicstep"
        QT_MOC_LITERAL(102, 8),  // "minValue"
        QT_MOC_LITERAL(111, 8),  // "maxValue"
        QT_MOC_LITERAL(120, 11),  // "stepButton1"
        QT_MOC_LITERAL(132, 11),  // "stepButton2"
        QT_MOC_LITERAL(144, 11),  // "stepButton3"
        QT_MOC_LITERAL(156, 8)   // "editable"
    },
    "QwtCounter",
    "buttonReleased",
    "",
    "value",
    "valueChanged",
    "btnReleased",
    "btnClicked",
    "textChanged",
    "numButtons",
    "basicstep",
    "minValue",
    "maxValue",
    "stepButton1",
    "stepButton2",
    "stepButton3",
    "editable"
};
#undef QT_MOC_LITERAL
#endif // !QT_MOC_HAS_STRING_DATA
} // unnamed namespace

Q_CONSTINIT static const uint qt_meta_data_CLASSQwtCounterENDCLASS[] = {

 // content:
      11,       // revision
       0,       // classname
       0,    0, // classinfo
       5,   14, // methods
       9,   53, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags, initial metatype offsets
       1,    1,   44,    2, 0x06,   10 /* Public */,
       4,    1,   47,    2, 0x06,   12 /* Public */,

 // slots: name, argc, parameters, tag, flags, initial metatype offsets
       5,    0,   50,    2, 0x08,   14 /* Private */,
       6,    0,   51,    2, 0x08,   15 /* Private */,
       7,    0,   52,    2, 0x08,   16 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Double,    3,
    QMetaType::Void, QMetaType::Double,    3,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
       8, QMetaType::Int, 0x00015103, uint(-1), 0,
       9, QMetaType::Double, 0x00015003, uint(-1), 0,
      10, QMetaType::Double, 0x00015103, uint(-1), 0,
      11, QMetaType::Double, 0x00015103, uint(-1), 0,
      12, QMetaType::Int, 0x00015103, uint(-1), 0,
      13, QMetaType::Int, 0x00015103, uint(-1), 0,
      14, QMetaType::Int, 0x00015103, uint(-1), 0,
       3, QMetaType::Double, 0x00015103, uint(-1), 0,
      15, QMetaType::Bool, 0x00015103, uint(-1), 0,

       0        // eod
};

Q_CONSTINIT const QMetaObject QwtCounter::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_meta_stringdata_CLASSQwtCounterENDCLASS.offsetsAndSizes,
    qt_meta_data_CLASSQwtCounterENDCLASS,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSQwtCounterENDCLASS_t,
        // property 'numButtons'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'basicstep'
        QtPrivate::TypeAndForceComplete<double, std::true_type>,
        // property 'minValue'
        QtPrivate::TypeAndForceComplete<double, std::true_type>,
        // property 'maxValue'
        QtPrivate::TypeAndForceComplete<double, std::true_type>,
        // property 'stepButton1'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'stepButton2'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'stepButton3'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'value'
        QtPrivate::TypeAndForceComplete<double, std::true_type>,
        // property 'editable'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<QwtCounter, std::true_type>,
        // method 'buttonReleased'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<double, std::false_type>,
        // method 'valueChanged'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<double, std::false_type>,
        // method 'btnReleased'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'btnClicked'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'textChanged'
        QtPrivate::TypeAndForceComplete<void, std::false_type>
    >,
    nullptr
} };

void QwtCounter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QwtCounter *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->buttonReleased((*reinterpret_cast< std::add_pointer_t<double>>(_a[1]))); break;
        case 1: _t->valueChanged((*reinterpret_cast< std::add_pointer_t<double>>(_a[1]))); break;
        case 2: _t->btnReleased(); break;
        case 3: _t->btnClicked(); break;
        case 4: _t->textChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QwtCounter::*)(double );
            if (_t _q_method = &QwtCounter::buttonReleased; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QwtCounter::*)(double );
            if (_t _q_method = &QwtCounter::valueChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 1;
                return;
            }
        }
    }else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QwtCounter *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->numButtons(); break;
        case 1: *reinterpret_cast< double*>(_v) = _t->step(); break;
        case 2: *reinterpret_cast< double*>(_v) = _t->minVal(); break;
        case 3: *reinterpret_cast< double*>(_v) = _t->maxVal(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->stepButton1(); break;
        case 5: *reinterpret_cast< int*>(_v) = _t->stepButton2(); break;
        case 6: *reinterpret_cast< int*>(_v) = _t->stepButton3(); break;
        case 7: *reinterpret_cast< double*>(_v) = _t->value(); break;
        case 8: *reinterpret_cast< bool*>(_v) = _t->editable(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QwtCounter *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setNumButtons(*reinterpret_cast< int*>(_v)); break;
        case 1: _t->setStep(*reinterpret_cast< double*>(_v)); break;
        case 2: _t->setMinValue(*reinterpret_cast< double*>(_v)); break;
        case 3: _t->setMaxValue(*reinterpret_cast< double*>(_v)); break;
        case 4: _t->setStepButton1(*reinterpret_cast< int*>(_v)); break;
        case 5: _t->setStepButton2(*reinterpret_cast< int*>(_v)); break;
        case 6: _t->setStepButton3(*reinterpret_cast< int*>(_v)); break;
        case 7: _t->setValue(*reinterpret_cast< double*>(_v)); break;
        case 8: _t->setEditable(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    } else if (_c == QMetaObject::BindableProperty) {
    }
}

const QMetaObject *QwtCounter::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *QwtCounter::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_CLASSQwtCounterENDCLASS.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QwtDoubleRange"))
        return static_cast< QwtDoubleRange*>(this);
    return QWidget::qt_metacast(_clname);
}

int QwtCounter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 5;
    }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    return _id;
}

// SIGNAL 0
void QwtCounter::buttonReleased(double _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QwtCounter::valueChanged(double _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
